<?php
/*
 * Created on 07.04.2008
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

class AppController extends Controller {

	function checkSession(){
		// If the session info hasn't been set...
		if (!$this->Session->check('User')){
			// Force the user to login
			$this->redirect('/');
			exit();
		}
	}
}

?>
